d:
cd \misc\pamake

32rtm

REM: Compiler Response file is opmp.rsp 
copy e:\misc\pp2\pamake\opmake.rsp opmake.rsp
IF ERRORLEVEL 1 GOTO ERROR

REM: Linker Response file is bcmp.rsp 
copy e:\misc\pp2\pamake\bcmake.rsp bcmake.rsp
IF ERRORLEVEL 1  GOTO ERROR

unix2dos e:\misc\pp2\pamake\h.h h.h
IF ERRORLEVEL 1  GOTO ERROR
unix2dos e:\misc\pp2\pamake\check.c check.c
IF ERRORLEVEL 1  GOTO ERROR
bcc @opmake.rsp check.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\ifproc.c ifproc.c
IF ERRORLEVEL 1  GOTO ERROR
bcc @opmake.rsp ifproc.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\input.c input.c
IF ERRORLEVEL 1  GOTO ERROR
bcc @opmake.rsp input.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\macro.c macro.c
IF ERRORLEVEL 1  GOTO ERROR
bcc @opmake.rsp macro.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\main.c main.c
IF ERRORLEVEL 1  GOTO ERROR
bcc @opmake.rsp main.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\make.c make.c
IF ERRORLEVEL 1  GOTO ERROR
bcc @opmake.rsp make.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\messages.c messages.c
IF ERRORLEVEL 1 GOTO ERROR
bcc @opmake.rsp messages.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\mtime.c mtime.c
IF ERRORLEVEL 1 GOTO ERROR
bcc @opmake.rsp mtime.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\rules.c rules.c
IF ERRORLEVEL 1 GOTO ERROR
bcc @opmake.rsp rules.c
IF ERRORLEVEL 1 GOTO ERROR
unix2dos e:\misc\pp2\pamake\reader.c reader.c
IF ERRORLEVEL 1 GOTO ERROR
bcc @opmake.rsp reader.c
IF ERRORLEVEL 1 GOTO ERROR

REM: Linking all files for console mode 32 bit code
tlink @bcmake.rsp
IF ERRORLEVEL 1 GOTO ERROR

copy admake.exe e:\misc\pp2\pamake
GOTO RETURN

del *.c
del *.obj
del *.rsp
del *.map
del *.h

:ERROR
REM: remove rum time manager
PAUSE ******************* E R R O R   I N   C O M P I L E *******************
GOTO RETURN
REM Compile Finished Without Errors
:RETURN
32rtm -u
